feat(fields): add Mersenne31 circle domain skeleton - #3
Draft
adrienlacombe wants to merge 10 commits into
Draft
Conversation
Build Timing Report
Incremental Rebuild Signal
Slowest Current Build Files (warm library build)Showing 6 slowest of 6 repo targets parsed from the current warm library build log.
|
adrienlacombe
force-pushed
the
pr257-mersenne31-base
branch
from
August 26, 2026 08:07
5742dfa to
5068d4c
Compare
Require logSize bounds on subgroupGen, document toPoint limitations, add toPoint/add_zero lemmas, and expand circle regression tests. Co-authored-by: Cursor <cursoragent@cursor.com>
- Rename `Point.add_zero` (proves `0 + p = p`) to `Point.zero_add` to match the repo's Mathlib-style naming convention. - Drop the discarded `logSize ≤ logOrder` argument from `CirclePointIndex.subgroupGen`; the body is total, and callers (`Coset.new`, `odds`, `halfOdds`) carry the bound where it is needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
adrienlacombe
force-pushed
the
feat/mersenne31-circle-domain
branch
from
August 26, 2026 08:58
fac0909 to
5116e0f
Compare
adrienlacombe
force-pushed
the
pr257-mersenne31-base
branch
from
September 1, 2026 19:09
5068d4c to
ba5032e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a STWO-style circle-domain skeleton on top of the Mersenne31 field work in Verified-zkEVM#257. The branch has been refreshed onto Verified-zkEVM#257 commit
5068d4cand adapted to the current Lean module layout.Changes
CompPoly.Fields.Mersenne31.Circle.x^2 + y^2 = 1.(2, 1268011823)and proves it lies on the circle.CirclePointIndexmodulo2^31, subgroup generator indices, cosets, conjugate cosets, circle domains, and canonical cosets.Non-goals
This intentionally does not prove the generator has order
2^31, nor does it formalize FRI or circle polynomial evaluation. Those are follow-on PRs after the domain skeleton stabilizes.Validation
lake build CompPoly.Fields.Mersenne31.Circle CompPolyTests.Fields.Mersenne31.Circle./scripts/update-lib.sh./scripts/check-imports.sh./scripts/lint-style.shlake testgit diff --checkStack note
This draft targets
adrienlacombe:pr257-mersenne31-base, which now mirrors the current Verified-zkEVM#257 head at5068d4c. The PR-specific diff is five files: the circle source and tests plus their facade and aggregate imports.